export default {
    state: {
        msg:'hello',
        num:0
    },
    mutations: {
        add(state,data){
            console.log(data)
            state.num++
        }
    },
    actions: {
        add({commit},payload){
            console.log(payload)
            commit('add',111)
        }

    },
    getters:{
        fullNum(state){
            return state.num+'元'
        }
    }
}